package com.hr.borrowingLog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hr.common.annotation.Excel;
import com.hr.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 查询借支记录对象 borrowing_log
 * 
 * @author guan
 * @date 2024-07-20
 */
public class BorrowingLog extends BaseEntity
{
    private static final long serialVersionUID = 1812654L;

    /** 员工id */
    @Excel(name = "员工id")
    private Long userId;

    /** 借支记录id */
    @Excel(name = "借支记录id")
    private Long borrowingLogId;

    /** 是否批准 */
    @Excel(name = "是否批准")
    private Integer borrowingStatus;

    /** 借支金额 */
    private Integer borrowingLogAmount;

    /** 借款理由 */
    private String reason;

    /** 时间范围-筛选记录 */
    @JsonFormat(pattern = "YYYY-MM-DD")
    private List<Date> times1;

    /** 时间范围-统计总额 */
    @JsonFormat(pattern = "YYYY-MM-DD")
    private List<Date> times2;


    /** 筛选时间范围-开始时间 */
    @JsonFormat(pattern = "YYYY-MM-DD")
    private Date startTime;

    /** 筛选时间范围-结束时间 */
    @JsonFormat(pattern = "YYYY-MM-DD")
    private Date endTime;

    public List<Date> getTimes2() {
        return times2;
    }

    public void setTimes2(List<Date> times2) {
        this.times2 = times2;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getborrowingLogAmount() {
        return borrowingLogAmount;
    }

    public void setborrowingLogAmount(Integer borrowingLogAmount) {
        this.borrowingLogAmount = borrowingLogAmount;
    }

    public List<Date> getTimes1() {
        return times1;
    }

    public void setTimes1(List<Date> times1) {
        this.times1 = times1;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getendTime() {
        return endTime;
    }

    public void setendTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setBorrowingLogId(Long borrowingLogId) 
    {
        this.borrowingLogId = borrowingLogId;
    }

    public Long getBorrowingLogId() 
    {
        return borrowingLogId;
    }
    public void setBorrowingStatus(Integer borrowingStatus) 
    {
        this.borrowingStatus = borrowingStatus;
    }

    public Integer getBorrowingStatus() 
    {
        return borrowingStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
//            .append("deptId", getDeptId())
            .append("borrowingLogId", getBorrowingLogId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("borrowingStatus", getBorrowingStatus())
            .toString();
    }
}
